<!DOCTYPE html>
<html>
<script src="cordova.js"></script>
<script type="text/javascript">
function onStart(){
	
	var img = document.getElementById("exitScreen");
	if(localStorage.getItem("exitScreen") == null || localStorage.getItem("exitScreen") == "data:,"){
		img.src="img/logo.png"
	}
	else{
		var dataImage = localStorage.getItem('exitScreen');
		img.src = dataImage;
	}
	
    setTimeout(function(){
	
	navigator.app.exitApp();
    },2000); 
	
}
</script>

<body onload="onStart()">

 <img src="" style="text-align: center;
    width: 100%; 
    height: 100%; 
    position: fixed;
    left: 0px; 
    top: 0px; 
    z-index: -1;" id="exitScreen">

</body>

</html>